import serviceAxios from "@/utils/serviceAxios"

export const checkUsername = (data) => {
	return serviceAxios({
		url: "/check/username",
		method: "get",
		params
	})
};

export const createUser = (data) => {
	return serviceAxios({
		url: "/user",
		method: "post",
		data
	})
};

export const login = (data) => {
	return serviceAxios({
		url: "/login",
		method: "post",
		data
	})
};

export const getUserInfo = (id) => {
	return serviceAxios({
		url: "/user/" + id,
		method: "get",
	})
};

